home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group99a.txt
/
000087_icon-group-sender _Mon Apr 5 13:21:54 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
3KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id NAA02091
for icon-group-addresses; Mon, 5 Apr 1999 13:21:46 -0700 (MST)
Message-Id: <199904052021.NAA02091@baskerville.CS.Arizona.EDU>
Date: Mon, 05 Apr 1999 13:35:24 -0500
From: David Starner <dstarner98@aasaa.ofe.org>
X-Accept-Language: en
To: Mark Evans <evans@gte.net>
CC: Icon List <icon-group@optima.CS.Arizona.EDU>
Subject: Re: Ccon and Icon-based Compilers
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Mark Evans wrote:
>
> The Jcon effort involved a Java translator plus a runtime system in Java. My
> question is whether anyone has ideas about the same concept for the C/C++
> language. Let's call it "Ccon." That is, a runtime system (library/classes),
> plus a translator to turn Icon into C/C++ targeted for that runtime system.
>
> I remember something called "iconc" but it seems to have fallen into disfavor,
> is not being upgraded, all attention is now on Unicon, etc., etc.
Wouldn't it be easier to upgrade iconc than start over?
>
> Another idea for which I would like to solicit opinions is writing a
> machine-code compiler in the Icon language directly. Good? Bad? Ugly?
Ugly. Very ugly.
> What
> about using a GNU compiler and then Icon code as the front end and/or back end.
> Any advantages?
It automatically* handles many systems and has great optimizing
routines. Much more work has gone into the GBE (GCC Back End) than you
could ever find time to put into your backend.
OTOH, you will have to write it in C because to do otherwise would force
you to cross-compiler first to each system (which is evil) and will make
extra work for EGCS people. You should work with the EGCS people to make
it a part of EGCS, so that it gets updated to new versions of the GNU
compiler and builds easily. Working with the EGCS people would also
imply assigning copyright of any code used in the compiler to the FSF,
although they would probably waive that if you chose to use parts of
Icont in it.
*Coroutines. I don't think that the GBE will handle coroutines without
some extension, which may have to be especially added for each computer.
> Believe Evolution? Save this block as FAITH.HTM and open with your browser.
This would be much better as small block with a couple URL's than an
ugly piece of HTML.
--
David Starner - OSU student - dstarner98@aasaa.ofe.org
If you want a real optimist, look up Ray Bradbury. Guy's nuts.
He actually likes people. -David Brin